package com.training.service;

import com.jfinal.plugin.activerecord.Page;
import com.training.common.model.Role;

import java.util.List;

public interface RoleService {

    public Page<Role> getRolePage(int pageNumber,int pageSize,String name);

    public boolean addRole(Role role);

    public boolean updateRole(Role role);

    public boolean deleteRole(int id);

    public boolean accredit(String roleid ,String[] menuIds);

    public List<Role> getRoleList();

}
